package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by zhangjh on 2016/9/23.
 */
@Entity
@Table(name = "bank")
@DynamicInsert
@DynamicUpdate
public class Bank extends IDEntityMall {


    /**
     * 银行简称
     *
     * @pdOid 1218bad7-8863-4633-a6a5-dc4ffe5ac870
     */
    @Column(columnDefinition = "varchar(255) comment '银行简称'")
    public String code;
    /**
     * 银行名称
     *
     * @pdOid e4ce5d3f-5382-4936-b36d-e0a87647d2f5
     */
    @Column(columnDefinition = "varchar(255) comment '银行名称'")
    public String name;
    /**
     * 排序字段
     *
     * @pdOid 878b6160-bae6-49ab-b372-c480fa8d0b0d
     */
    @Column(columnDefinition = "bigint comment '序号'")
    public Integer seqNo;



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(int seqNo) {
        this.seqNo = seqNo;
    }

    @Override
    public String toString() {
        return "Bank{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", seqNo=" + seqNo +
                '}';
    }
}
